package com.labManage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data                         /*自动生成set、get、tostring*/
@NoArgsConstructor            /*无参构造*/
@AllArgsConstructor           /*全参构造*/
@TableName("role_permition")  /*与数据库表做映射*/
public class RolePermition {
    private Long id;

    private Long roleId;

    private Long permitionId;

    private Date createTime;

    private Date modifyTime;

    private String createPerson;

    private String modifyPerson;

    @Override
    public String toString() {
        return "RolePermition{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", permitionId=" + permitionId +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                ", createPerson='" + createPerson + '\'' +
                ", modifyPerson='" + modifyPerson + '\'' +
                '}';
    }
}